<template>
    <div>
        <TreeSelect v-model='paramsInfo.value'
                    :multiple='paramsInfo.multiple'
                    @on-change='selectChange'
                    show-checkbox
                    :data='dataList' />
    </div>
</template>
<script>
    export default {
        name: 'selectTree',
        props: {
            paramsInfo: {
                type: Object
            }
        },
        data () {
            return {
                dataList: []
            };
        },
        created () {
        },
        methods: {
            // 改变选中值
            selectChange (value) {
                let data = {
                    compName: this.paramsInfo.name,
                    compValue: value
                }

                this.$emit('changeSelectTreeModel', data);
            }
        }
    }
</script>
